package com.pai.entity.router;

import java.util.List;

//路由类，主要要组这样一个形状
public class Router {
    private String path;  //路由路径
    private String component;  //路由对应的组件
    private String name;  //路由名称
    private String redirect;  //重定向，我暂时用不到吧
    private Meta meta;  //一些关于这个路由的描述
    private List<Router> children;  //子路由

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getRedirect() {
        return redirect;
    }

    public void setRedirect(String redirect) {
        this.redirect = redirect;
    }

    public Meta getMeta() {
        return meta;
    }

    public void setMeta(Meta meta) {
        this.meta = meta;
    }

    public List<Router> getChildren() {
        return children;
    }

    public void setChildren(List<Router> children) {
        this.children = children;
    }
}
